package enterprises

import grails.test.*

class TypeProviderIntegrationTests extends GroovyTestCase {
    protected void setUp() {
        super.setUp()
    }

    protected void tearDown() {
        super.tearDown()
    }

    void testUniqueName() {
		new TypeProvider(name:"asd").save(flush:true)
		def duplicateNameTypeProvider = new TypeProvider(name:"asd")
		
		assertFalse(duplicateNameTypeProvider.validate())
		assertNull duplicateNameTypeProvider.save()		
    }
}
